﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Extentions;

namespace TrainingReminderSystem.Model
{
    /// <summary>
    /// 用户操作日志
    /// </summary>
    [ExLanguageKey("SysOperateLog")]
    public partial class SysOperateLogExPost
    {
        /// <summary>
        /// ID
        /// </summary>
        [ExLanguageKey("ID")]
        [Key]
        public int ID { get; set; }

        /// <summary>
        /// 用户操作日志类型;登录=0,注销=1,修改我的信息=5,修改密码=6,员工新建编辑=100,重置员工密码=101,字典新建编辑=200,系统参数保存=300,权限角色保存=400,特殊导出新建编辑=500
        /// </summary>
        [ExLanguageKey("EnumOperateLogType")]
        public EnumOperateLogType EnumOperateLogType { get; set; }

        /// <summary>
        /// 员工ID
        /// </summary>
        [ExLanguageKey("SysEmployeeID")]
        public int? SysEmployeeID { get; set; }

        /// <summary>
        /// 客户ID
        /// </summary>
        [ExLanguageKey("SysCustomerID")]
        public int? SysCustomerID { get; set; }

        /// <summary>
        /// IP地址
        /// </summary>
        [ExLanguageKey("IPAddress")]
        public string IPAddress { get; set; }

        /// <summary>
        /// GetUrl;一般错误日志才去记录 忽略这三个字段
        /// </summary>
        [ExLanguageKey("GetUrl")]
        public string GetUrl { get; set; }

        /// <summary>
        /// PostForm;一般错误日志才去记录 忽略这三个字段
        /// </summary>
        [ExLanguageKey("PostForm")]
        public string PostForm { get; set; }

        /// <summary>
        /// UserAgent;一般错误日志才会去记录 忽略这三个字段
        /// </summary>
        [ExLanguageKey("UserAgent")]
        public string UserAgent { get; set; }

        /// <summary>
        /// 是否报错
        /// </summary>
        [ExLanguageKey("IsError")]
        public bool IsError { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [ExLanguageKey("Remark")]
        public string Remark { get; set; }
    }
}
